﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ZYL
{
    class Caipan : Class1
    {
        private int judg;
        private int judg2;
        public int Judg { get => judg; set => judg = value; }
        public int Judg2 { get => judg2; set => judg2 = value; }

        public Caipan(int judg, int judg2)
        {
            this.Judg = judg;
            this.Judg2 = judg2;
        }
        public Caipan() { }
        //写“嘻嘻嘻，玩家输了”
        public int Port(int gnum, int mannum)
        {
            if (gnum == mannum)
            {
                return 0;
            }
            else if (gnum == 1 && mannum == 2 || gnum == 2 && mannum == 3 || gnum == 3 && mannum == 1)
            {
                return 1;
            }
            else
            {
                return -1;
            }
        }
    }
}
